/**
 * Copyright (c) 2012, Camelot and/or its affiliates. All rights reserved.
 * Camelot PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.camelot.ccr.system.dao;

import java.io.IOException;

import org.springframework.web.multipart.MultipartFile;

import com.camelot.ccr.global.dao.GenericDaO;
import com.camelot.ccr.global.util.Pager;
import com.camelot.ccr.system.persistence.Sponsor;

/**
 * <pre>
 * <赞助商>
 * </pre>
 * @author Liu Jun
 * @version V0.1, 2014-5-20 下午10:28:23
 */
public interface SponsorDao extends GenericDaO<Sponsor, String> {
	

	/**
	 * <pre>
	 * 赞助商列表数据并分页
	 * </pre>
	 * @param curpage 当前页
	 * @param pageSize  每页显示数量
	 * @param example 参数
	 * @return Pager<Sponsor>
	 * @author Liu Jun, 2014-5-23 下午6:45:20
	 */
	Pager<Sponsor> findPageList(int curpage, int pageSize, Sponsor example);
	
	/**
	 * <pre>
	 * <添加赞助商并保存头像>
	 * </pre>
	 * @param sponsor
	 * @param file
	 * @throws IllegalStateException
	 * @throws IOException
	 * @author Liu Jun, 2014-5-23 下午11:14:05
	 */
	void saveSponsor(Sponsor sponsor,MultipartFile file) throws IllegalStateException, IOException;
}
